package wowrl.data;

import wowrl.engine.Dice;
import wowrl.engine.WOWRL_Engine;

public class MobFactory {
	private WOWRL_Engine engine;
	
	//Constructor
	public MobFactory(WOWRL_Engine engine){
		this.engine = engine;
	}
		
	//Specific production
	public Mob createRat(){
		return new Rat(engine);
	}
	
	private class Rat extends Mob {
		private static final int setDisplayTileNumber = 90;
		private static final String setName = "rat";
			
		public Rat(WOWRL_Engine engine) {
			super(engine, setDisplayTileNumber,setName);
			
			maxHP = Dice.roll(4) + 6; //1d4 + 6
			currentHP = maxHP;
		}
		
		public void interact()
		{
			engine.addMessage("You bump in to the " + name + "!");
		}	
	}
}
